package com.example.calculation;

/**
 * @author 胡帅博
 * @date 2020/9/26 18:12
 * <p>
 * 对象头 12字节
 * chefs  4
 * equipid 4
 * recepeids 4
 * score 4字节
 * 填充 4字节
 * <p>
 * 32字节
 * <p>
 * recepeids指向的数组为 56字节
 * chefs和equipid指向的数组是复用的不做计算
 */
final public class TopResult {

    public int[] chefs;
    public int[] equipid;
    public int[] recepeids;
    //单份价格(专精，技法，大赛倍数，厨具等全部算完之后)
    public int score;

    public TopResult(int[] playChefs, int[] recipeindex, int score) {
        update(playChefs, recipeindex, score);
    }

    public void update(int[] playChefs, int[] recipeindex, int score) {

        chefs = playChefs;
        recepeids = recipeindex;
        this.score = score;
    }

}
